.net core check if linux

89

.net core check if linux -

if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
    Console.WriteLine("We're on macOS!");
}

Comments

Submit
0 Comments